# Contributor: Daniel Everett <deverett@gmail.com>
# Maintainer: Daniel Everett <deverett@gmail.com>
pkgname=py3-pyscard
_pkgname=pyscard
pkgver=2.0.7
pkgrel=1
pkgdesc="pyscard smartcard library for python"
url="https://github.com/LudovicRousseau/pyscard"
arch="all"
license="LGPL-2.1-only"
depends="pcsc-lite"
makedepends="python3-dev py3-setuptools swig pcsc-lite-dev"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

check() {
	python3 setup.py test
}

sha512sums="
d30a2d0fe9b410f277a4a1e45ae88a30eb3aa7ef6cac683a80d2bb3cfe38aeafe6a483dfd42c50017c46ee0d26da13f7226e25e783176587eafce1988127bb67  pyscard-2.0.7.tar.gz
"
